package org.geektimes.configuration.microprofile.source.servlet;

import javax.servlet.ServletContainerInitializer;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import java.util.Set;

/**
 * @Author: jipeng
 * @Description:
 * @Date: Created in 2021/3/21 20:19
 */
public class ServletConfigInitializer implements ServletContainerInitializer {


    @Override
    public void onStartup(Set<Class<?>> set, ServletContext servletContext) throws ServletException {
        //增加 ServletContextListener
        servletContext.addListener(new ServletContextConfigInitializer(servletContext));

    }
}
